<template>
  <div class="recommend-box">
    <div v-for="item in recommends" :key="item.id" class="flex-item"> 
       <img :src="item.image" alt="" />
       <p>{{item.title}}</p>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeRecommend",
  props: {
    recommends: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>
<style scoped>
.recommend-box {
  display: flex;
  padding: 10px 0 0;
  text-align: center;
  border-bottom: 10px solid #eee;
}
.flex-item {
  flex: 1;
  letter-spacing: 1px;
}
.recommend-box > div> img{
    width: 68px;
    height: 68px;   
}
</style>